package com.zlw.test.listener;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * @ClassName MyListener
 * @Description TODO
 * @Author zhaoluowei
 * @Date 2021/1/25  21:19
 * @Version 1.0
 */
@Slf4j
@WebListener
public class MyListener implements ServletContextListener {


    @Override
    public void contextInitialized(ServletContextEvent sce) {
        log.info("[MyListener ... contextInitialized ... ]");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        log.info("[MyListener ... contextDestroyed ... ]");

    }
}
